package edu.polsl.bio.str.manager.event;

import edu.polsl.bio.str.common.messaging.StrDotsPayload;
import org.springframework.context.ApplicationEvent;

/**
 * //todo class description
 * <p/>
 * Created on: Jun 14, 2011 9:10:06 PM <br/>
 * <a href="http://www.polsl.pl">www.polsl.pl</a>
 *
 * @author lukasz.olczak@polsl.pl
 */
public class DotPlotResultsEvent extends BaseManagerEvent {

  private long jobId;

  private long nodeId;

  private StrDotsPayload results;

  public DotPlotResultsEvent(long jobId, long nodeId, StrDotsPayload results) {
    this.jobId = jobId;
    this.nodeId = nodeId;
    this.results = results;
  }

  @Override
  public void visit(ManagerHandlerVisitor visitor) {
    visitor.onDotPlotResultsEvent(this);
  }

  public long getJobId() {
    return jobId;
  }

  public long getNodeId() {
    return nodeId;
  }

  public StrDotsPayload getResults() {
    return results;
  }

  @Override
  public String toString() {
    return "DotPlotResultsEvent{" +
           "jobId=" + jobId +
           ", nodeId=" + nodeId +
           "} " + super.toString();
  }
}
